package com.mybpm.core.definition


import grails.compiler.GrailsCompileStatic
import groovy.transform.ToString

/**
 * 路径定义
 */
@GrailsCompileStatic
@ToString(includes = 'id,name', includeNames = true, includePackage = false)
class Transition {
    /** 路径id */
    String tid
    /** 路径定义名称 */
    String name
    /** 路径显示名称 */
    String displayName
    /** 路径类型 */
    String type

    Date dateCreated;
    Date lastUpdated;

    static belongsTo = [node: Node]

    static constraints = {
        tid nullable: false, blank: false, length: 200
        name nullable: true, length: 100
        displayName nullable: true, length: 100
        type nullable: true, length: 50
    }

    static mapping = {
        table 'bpm_d_transition'
        version false
    }

}
